package com.share51.novel.service.impl;

import com.share51.novel.dao.CategoryMapper;
import com.share51.novel.entity.Category;
import com.share51.novel.service.CategoryService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 分类业务
 * @author gb
 */
@Service("categoryService")
public class CategoryServiceImpl implements CategoryService {

    @Resource
    private CategoryMapper categoryMapper;

    @Override
    public List<Category> getAllCategory() {
        return categoryMapper.selectList(null);
    }
}
